# age=input("请输入你的年龄：")
# age=int(age)
# if age<18:
#    print("未满18岁")
# else:
#    print("欢迎加入")


# for i in range(10):
#     for j in range(1,i+1):
#         print(i,"*",j,"=",i*j,end="  ")
#     print()# 换行

# yh=int(input("请输入一个数："))
# dn=random.randint(1,4)
# dn1=random.randit(1,4)
# print(dn)

hs=input("请输入当前温度：")
# sh=(F-32)/1.8
# print("当前摄氏度为："sh,"摄氏度")

if hs[-1] in["f","F"]:
    hs=float(hs[0:-1])
    C=(hs-32)/1.8
    print(C,"C")
elif hs[-1] in ["c","C"]:
    hs=float(hs[0:-1])
    F=1.8*hs+32
    print(F,"F")
else:
    print("请输入正确温度")
    